import { axios } from '@/utils/request'
export default {
  getNumbers: useToken => {
    return axios.get(`/qryNum/getNumList?useToken=${useToken}`)
  },
  export: param => {
    return axios.post('/qryNum/export', param, {
      responseType: 'blob',
      header: {
        'Content-Type': 'application/json;charset=UTF-8'
      }
    })
  },
  getVerificationCode: param => {
    return axios.get(`/gryNum/getValidateCode?number=${param}`)
  },
  checkVerificationCode: param => {
    return axios.get(`/gryNum/checkValidateCode?number=${param.number}&code=${param.code}`)
  }
}
